package com.vn.ld.btc.dao;

import java.io.Serializable;
import java.util.List;

public interface IBaseDao<E> {
	public E findByID(Class<E> entity, Serializable id);

	public void save(E instance);

	public void delete(E instance);

	public List<E> findByProperty(String propertyName, Object value);

	public List<E> findByProperty(String propertyName, String orderName, Object value, boolean desc);

	public E merge(E instance);

	public List<E> findAll();

}
